/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.group4.controller;

import com.group4.entity.Lesson;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Path;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;

/**
 *
 * @author Victor Cernea
 */
@Stateless
public class LessonFacade extends AbstractFacade<Lesson> {
    @PersistenceContext(unitName = "HighSchoolPortal_pu")
    private EntityManager em;

    protected EntityManager getEntityManager() {
        return em;
    }

    public LessonFacade() {
        super(Lesson.class);
    }
          
}
